package com.astrocsr.domain.bean;

import java.util.Date;

import javax.persistence.*;

@Entity @Table(name="TBL_USER")
@NamedQueries( { @NamedQuery(name = "TblUser.UpdatePassword", query = "update TblUser model set model.password=:password, model.updatedBy=:updatedBy, model.updatedDate=:updatedDate where model.email=:email"),
    @NamedQuery(name = "TblUser.DeleteByEmail", query = "delete TblUser model where model.email=:email")})
public class TblUser implements java.io.Serializable {

	// Fields
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue
	@Column (name = "USER_ID")
	private Long userId;
	@Column (name = "EMAIL")
	private String email;
	@Column (name = "STATUS")
	private String status;
	@Column (name = "PASSWORD")
	private String password;
	@Column (name = "CREATED_BY")
	private String createdBy;
	@Column (name = "CREATED_DATE")
	private Date createdDate;
	@Column (name = "UPDATED_BY")
	private String updatedBy;
	@Column (name = "UPDATED_DATE")
	private Date updatedDate;

	// Constructors

	/** default constructor */
	public TblUser() {
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
 
}